package com.ae.shield.common.enchantment;

import net.minecraft.enchantment.Enchantment;

import javax.annotation.Nonnull;

public class EnchantmentWrap {
    private int lvl;
    private Enchantment enchantment;

    private EnchantmentWrap(@Nonnull Enchantment enchantment, int lvl) {
        this.enchantment = enchantment;
        this.lvl = lvl;
    }

    public static EnchantmentWrap wrap(@Nonnull Enchantment enchantment, int lvl) {
        return new EnchantmentWrap(enchantment, lvl);
    }

    public int getLvl() {
        return lvl;
    }

    public void setLvl(int lvl) {
        this.lvl = lvl;
    }

    public Enchantment getEn() {
        return enchantment;
    }

    public void setEn(Enchantment enchantment) {
        this.enchantment = enchantment;
    }
}
